package com.yangziqiang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.format.annotation.DateTimeFormat;

import javax.sql.rowset.serial.SerialArray;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName EsMovies
 * @Description TODO
 * @Author 18516
 * @DATE 2022/2/9 09:08:45
 * @Version 1.0
 */
@Data
@Document(indexName = "index-movies", type = "movies")
public class EsMovies {
    /**
     * 主键
     */
    @Id
    private Integer mid;

    /**
     * 电影名
     */
    private String mname;

    /**
     * 导演
     */
    private String director;

    /**
     * 上映日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date releaseDate;

    /**
     * 下线日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 审核状态
     */
    private String checkStatus;


}
